using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Input;

namespace Haidou.Wpf.Util.Converters;

public class KeysToString : IValueConverter
{
	public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
	{
		Key? keys = value as Key?;

		return keys?.ToString();
	}

	public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
	{
		return value;
	}
}